import request from '@/utils/request'

export function login(userInfo) {
    return request({
        url: '/tes/unauthorized/form',
        method: 'post',
        headers: {
            'Content-Type': "multipart/form-data"
        },
        data: userInfo
    })
}

export function getInfo(token) {
    return request({
        url: '/tes/user/info',
        method: 'get',
        params: {
            token
        }
    })
}

export function logout() {
    return request({
        url: '/logout',
        method: 'get'
    })
}

